package com.lzy.cloud.payment.remote;

import com.lzy.cloud.payment.dtos.pay.PayBackDTO;
import com.lzy.framework.core.output.Result;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "lzy-cloud-rabbitmq")
public interface RabbitmqApi {

    /**
     * 支付回调业务处理（包括支付成功和支付失败）
     * @param payBackDTO
     * @return
     */
    @RequestMapping(value = "/mq/send/payment/processing",method = RequestMethod.POST)
    Result paymentProcessing(PayBackDTO payBackDTO);
}
